calculate square root of any number